import Image from "next/image";

export default function Home() {
  return (
    <div className="bg-white shadow rounded-lg p-6">
      <h2 className="text-2xl font-bold text-gray-900 mb-4">欢迎使用在线考试系统</h2>
      
      <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mt-8">
        <div className="bg-gray-50 p-6 rounded-lg">
          <h3 className="text-lg font-semibold text-gray-900 mb-2">在线考试</h3>
          <p className="text-gray-600 mb-4">参加各类在线考试，实时获取成绩反馈</p>
          <a
            href="/student-exams"
            className="inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700"
          >
            开始考试
          </a>
        </div>

        <div className="bg-gray-50 p-6 rounded-lg">
          <h3 className="text-lg font-semibold text-gray-900 mb-2">在线学习</h3>
          <p className="text-gray-600 mb-4">丰富的学习资源，助您提升专业技能</p>
          <a
            href="/learning"
            className="inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700"
          >
            开始学习
          </a>
        </div>

        <div className="bg-gray-50 p-6 rounded-lg">
          <h3 className="text-lg font-semibold text-gray-900 mb-2">成绩查询</h3>
          <p className="text-gray-600 mb-4">查看历史考试成绩和学习进度</p>
          <a
            href="/profile"
            className="inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700"
          >
            查看成绩
          </a>
        </div>
      </div>

      <div className="mt-12 text-center">
        <p className="text-gray-600">
          还没有账号？
          <a href="/register" className="text-indigo-600 hover:text-indigo-500 font-medium">
            立即注册
          </a>
        </p>
      </div>
    </div>
  );
}
